package cn.south.campus.common.model.qo;

import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author chow
 * @since 2024/10/31 15:04
 */
public class BaseQO<T> implements Serializable {
    private static final long serialVersionUID = 1L;
    private long pageNum = 1;
    private long pageSize = 5;

    public PageDTO<T> getPageDto() {
        return new PageDTO<>(pageNum, pageSize);
    }

    public long getPageNum() {
        return pageNum;
    }

    public void setPageNum(long pageNum) {
        this.pageNum = pageNum;
    }

    public long getPageSize() {
        return pageSize;
    }

    public void setPageSize(long pageSize) {
        this.pageSize = pageSize;
    }
}
